package com.songlanyun.modules.article.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.songlanyun.modules.article.entity.Article;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.songlanyun.modules.article.model.vo.ArticleVO;
import com.songlanyun.modules.opus.entity.Opus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 文章表
 *
 * @author wuchao
 * @email sunlightcs@gmail.com
 * @date 2021-02-27 15:36:01
 */
@Mapper
public interface ArticleDao extends BaseMapper<Article> {

    IPage<Article> articlePage(IPage<Article> page, @Param("params") Map<String, Object> params);

    List<Article> appList(Map<String, Object> params);

    Boolean ifCreateArticle(Long cid);

    ArticleVO info(Long id);

    IPage<Article> articleAppPage(IPage<Article> page, @Param("params") Map<String, Object> params);

}
